package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.wemedia.pojos.WmNews;
import com.heima.model.wemedia.vos.WmNewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface WmNewsMapper  extends BaseMapper<WmNews> {


    public List<WmNewsVo> findByVos(@Param("page") Integer page, @Param("size")Integer size,@Param("dto")  NewsAuthDto dto);


    public Integer countList(@Param("dto")  NewsAuthDto dto);

}
